import { createApp } from 'vue'
import App from './App.vue'
import { router } from './router/index.js'
import store from './store'

// 自定义svg图标
import SvgIcon from '@/icons'

// 前端ui
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// 导入全局ui
import '@/assets/styles/border.css'
import '@/assets/styles/reset.css'

// 引入路由守卫
import "./util/route_guard.js"
// 国际化中文
import zhCn from 'element-plus/es/locale/lang/zh-cn'

const app = createApp(App)
SvgIcon(app);
app.use(store)
app.use(router)
app.use(ElementPlus)
app.use(ElementPlus, {
    locale: zhCn,
})
app.mount('#app')
